<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

	<meta charset="UTF-8">
	<title>-webkit-flex | CtripUED Webkit CSS Library</title>
	
	<script type="text/javascript" src="base.js"></script>

<link rel="stylesheet" type="text/css" href="flex.css" media="all">
</head>
<body>
<div class="head">
	<div class="wrap">
		<a href="http://ued.ctrip.com/blog/wp-content/webkitcss/index.html" class="logo">CtripUED webkit CSS library</a>
		<div class="nav">
			<ul>
				<li><a href="http://ued.ctrip.com/blog/wp-content/webkitcss/index.html">首页</a></li>
				<li><a href="http://ued.ctrip.com/blog/wp-content/webkitcss/aboutus.html#about">关于我们</a></li>
				<li><a href="http://ued.ctrip.com/blog/wp-content/webkitcss/aboutus.html#about_box">意见反馈</a></li>
				<li><a href="http://ued.ctrip.com/">CtripUED 博客</a></li>
			</ul>
		</div>
	</div>
</div>
<div class="wrap">
	<div class="side">
		<div class="filter_box">
			<div class="field" id="catalogFilter">
					<input id="key" placeholder="属性搜索..." type="search">
			</div>
		</div>
		<div class="categorys"></div>
	</div>

	<div class="main" id="main">
		<div class="position" id="position">
			您的位置: <a href="http://ued.ctrip.com/blog/wp-content/webkitcss/index.html">首页</a> &gt; -webkit-flex
		</div>
		<!-- /position -->
		<div class="prop_intro">
			<div class="tit">
				<h1>-webkit-flex 属性</h1>
			</div>
			<div class="prop_detail">
				<p>一个元素被定义display:-webkit-flex;则此元素即为伸缩盒模型中的伸缩容器，其包含的子元素是伸缩项目。
				flex是一个复合属性。<span class="ex">Flexbox伸缩布局盒模型中的伸缩容器及伸缩特性定义</span>。
				由多个伸缩项目组成其具体的布局方式。
				是为了呈现复杂的应用与页面而设计出来的。</p>
			</div>
			<!-- /prop_detail -->
			<div class="prop_comp">
				<p>
					<b>-webkit-flex:</b>
					<i class="ico_browser ico_browser_saf"><small>6.1+</small></i>
					<i class="ico_browser ico_browser_chr"><small>21+</small></i>
					<i class="ico_browser ico_browser_and"><small>4.4+</small></i>
					<i class="ico_browser ico_browser_ios"><small>7+</small></i>
				</p>
				<p>
					<b>flex:</b>
					<i class="ico_browser ico_browser_saf_no"><small>×</small></i>
					<i class="ico_browser ico_browser_chr"><small>29+</small></i>
					<i class="ico_browser ico_browser_and"><small>4.4+</small></i>
					<i class="ico_browser ico_browser_ios"><small>7+</small></i>
				</p>
			</div>
			<!-- /prop_comp -->
			<!-- Baidu Button BEGIN -->
			<!-- Baidu Button BEGIN -->

		</div>
		<!-- /prop_intro -->
		<div class="mod prop_gramm">
			<h2 class="mod_tit">语法</h2>
			<p class="mod_con">
				<strong>display:</strong>-webkit-flex; [指定伸缩容器]<br>
				<strong>-webkit-flex:</strong> none | [flex-grow flex-shrink || flex-basis] | initial | auto
			</p>
		</div>
		<!-- /prop_gramm -->
		<div class="mod prop_value">
			<h2 class="mod_tit">取值</h2>
			<div class="mod_con">
				<table>
					<tbody><tr>
						<th>none</th>
						<td>在任何情况都不会发生伸缩</td>
					</tr>
					<tr>
						<th>flex-grow</th>
						<td>扩展比率</td>
					</tr>
					<tr>
						<th>flex-shrink</th>
						<td>收缩比率</td>
					</tr>
					<tr>
						<th>flex-basis</th>
						<td>伸缩基准值</td>
					</tr>
					<tr>
						<th>initial</th>
						<td>在有剩余空间的情况下不会有任何变化，但是在必要的情况下会被收缩</td>
					</tr>
					<tr>
						<th>auto</th>
						<td>会根据主轴自动伸缩以占用所有剩余空间，非常类似于普通流中的自动外边距</td>
					</tr>
				</tbody></table>
			</div>
		</div>
		<!-- /prop_value -->
		<div class="mod prop_demo">
			<h2 class="mod_tit">示例</h2>
			<div class="mod_con">
				<iframe id="iframedemo" style="border: 1px solid rgb(204, 204, 204);" src="flex_1.html" width="100%" frameborder="0" height="400"></iframe>
				<div class="btns">
					<a href="http://ued.ctrip.com/blog/wp-content/webkitcss/demo/flex.html" target="_top" class="btn_primary">演示</a>
				</div>

			</div>
		</div>
		<!-- /prop_demo -->
	</div>
	<!-- /main -->
</div>
<!-- /wrap -->

</body>
</html>
